package secondStage.part1.extendsTest;

/**
 * @ClassName: [Zi]
 * @Description: 子类
 * @Author: [黄劲松]
 * @CreateDate: [2021-02-08]
 * @Version: [v1.0]
 */
public class Zi extends Fu {
    //身高
    public int height = 175;
    //年龄
    public int age1 = 20;//成员变量

    public void show() {
        //年龄
        int age2 = 30;//局部变量
        System.out.println(age);
        System.out.println(age1);
        System.out.println(age2);
        System.out.println(height);
        //System.out.println(weight);//报错
        System.out.println("show方法被调用");
    }
}
